package finance

class UserCdInvestmentDetail {
	
	Long id
    Long version
    UserInvestment user_investment
    String label
    Date start_date
    BigDecimal principal_amount
    BigDecimal interest_rate
    BigDecimal number_of_months

    static constraints = {
    }
	
	static mapping = {
        table 'user_cd_investment_detail'
        columns {
        	id column: 'user_cd_investment_detail_id'
        }
    }
	
	String toString() {
		return "CD Investment: ${id}, ${label}, ${user_investment}, ${start_date}, ${principal_amount}, ${interest_rate}, ${number_of_months}"
	}
}